package com.depository.oss.service.imp;

import com.alibaba.dubbo.config.annotation.Service;
import com.depository.oss.mapper.UserMapper;
import com.depository.oss.model.entity.User;
import com.depository.oss.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class UserServiceImp implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> queryForPage() { return userMapper.queryForPage(); }

    @Override
    public User getUser(String id)
    {
        User user = userMapper.getUser(id);
        return user;
    }

    @Override
    public void insertUser(User user) {
         userMapper.insertUser(user);
    }

    @Override
    public void updateUser(User user) {
         userMapper.updateUser(user);
    }
}
